<%@ include file="/taglibs.jsp"%>

<head><title>
     <c:if test="${empty field.id}">
 	<fmt:message key="fieldAddForm.title"/>
 </c:if>
 <c:if test="${not empty field.id}">
 	<fmt:message key="fieldEditForm.title"/>
 </c:if></title>
</head>

<p>
	<fmt:message key="fieldForm.add.title"/>
</p>
  
<s:form name="fieldForm" action="saveField" method="post" validate="true">
<s:hidden name="field.id" value="%{field.id}"/>

<tr>
	<td>
		<s:text name="field.name"></s:text>
        <span class="required">*</span>:
    </td>
    <td>
    	<s:textfield maxlength="40" name="field.name" required="true" size="50" theme="simple"/>
    </td>
</tr>
<tr>
	<td>
		<s:text name="field.description"></s:text>
    </td>
    <td>
    	<s:textfield maxlength="60" name="field.description" size="60" theme="simple"/>    	
    </td>
</tr>

<s:select key="department.name" list="departments" value="depId" name="depId" listKey="id" listValue="name"/>
<%@ include file="/common_functions.jsp"%>
</s:form>

